Pos

interface Pos

Defines the mutable position of something

Author

fzzyhmstrs

Since

0.2.0

Inheritors

Functions

Link copied to clipboard
abstract fun dec(amount: Int)

Decrements this position by the given amount

Link copied to clipboard
abstract fun get(): Int

Returns the position of this pos

Link copied to clipboard
abstract fun inc(amount: Int)

Increments this position by the given amount

Link copied to clipboard
abstract fun set(new: Int)

Sets the position of this pos